
public class LineItem {
private Product1 p1;
private Product2 p2;
private Product3 p3;

public LineItem(Product1 p1, Product2 p2, Product3 p3){
 this.p1=p1;
 this.p2=p2;
 this.p3=p3;
	
}

public Product1 getProduct1(){
	return p1;
}


public void setProduct(Product1 p1){
	this.p1=p1;
}



public String toString(){
	return "the line Item is"+"LineItem1";
}
}
